﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FourColumnTable
{
    class FourColumnTable
    {
        static void PrintTable(List<int> numbers)
        {
            Console.WriteLine("{0,5}{1,-6}{2,-10} {3}", "number", "pow", "sqrt", "nat.log");
            foreach (int number in numbers)
            {
                Console.Write("{0,5} ", number);
                Console.Write("{0,-6}", number*number);
                Console.Write("{0:00000.0000}", Math.Sqrt(number));
                Console.Write(" {0}",Math.Log(number));
                Console.WriteLine();
            }
        }

        static void Main()
        {
            const int startNumber = 5;
            const int endNumber = 25;
            List<int> numbers = new List<int>();
            for (int i = startNumber; i <= endNumber; i++)
            {
                numbers.Add(i);
            }
            PrintTable(numbers);
        }
    }
}
